<?php
/**
 * CreateTime: 2023/12/12 15:15
 * User:LinQ
 */

namespace App\Http\Service\Auth;

use App\Http\Service\BasicInterfaceService;
use App\Models\Auth\AuthModel;

class ManageAuthService implements BasicInterfaceService
{

    public function getList(array $prams)
    {
        $page_size = $prams['page_size'] ?? 10;
        $filters = $prams['filters'] ?? [];
        $desc = $prams['desc'] ?? [];
        $companyModel = new AuthModel();
        if($filters){
            $this->listSelectFilters($companyModel,$filters);
        }
        $res = $companyModel->cList($companyModel,$page_size,$desc);
        // 处理数据
        $res['data'] = $this->dispose($res['data']);
        s_c_return($res,trans('message.get_list_ok',[
            'name' => trans('key.company')
        ]));
    }

    public function dispose($data): mixed
    {

    }

    public function listSelectFilters($query, $filters)
    {

    }

    public function getSelect()
    {
        
    }

    public function getSelectHasPage($prams)
    {
        
    }

    public function getInfo($id)
    {
        
    }

    public function create($data)
    {

    }

    public function fakeDelete($id)
    {

    }

    public function delete($id)
    {
        
    }

    public function update($data)
    {
    }

    public function fakeDeleteByIds($ids)
    {
        
    }
}